import React, { useContext, useEffect, useState } from 'react';
import ThemeContext from '../../../ThemeContext';
export default function VoteMain() {
  const { store } = useContext(ThemeContext);
  const { supNum, oppNum } = store.getState();

  return (
    <>
      <div className='main'>
        <p>支持人数:{supNum}</p>
        <p>反对人数:{oppNum}</p>
      </div>
    </>
  );
}
